﻿@{
    ViewBag.Title = "找回密码第四步";
    ViewBag.Page = "user";
    ViewBag.Menu = "step4";
    Layout = "~/Views/Shared/_FindPasswordLayout.cshtml";
}

@section HeadJavaScript{
    <script type="text/javascript" src="/Scripts/angular/base/angular.min.js"></script>
    <!--[if (IE 6)|(IE 7)]><script type="text/javascript" src="/Scripts/angular/base/json2.js"></script><![endif]-->
    <script type="text/javascript" src="/Scripts/angular/js/getpassword.js"></script>
    <script type="text/javascript" src="/Scripts/angular/base/angular.autoload.js"></script>
}


<div class="pos"><img src="~/images/images/pay_dian.jpg" /> <a href="#">会员中心</a> - 取回密码账户</div>
<div class="form1" style="background:none;">
	<p class="tishi">重新设置登录密码</p>
     <form class="form1 st_form" name="form" on-submit="submit()" onsubmit="return false;" ng-controller="Ctrl" 
            ng-init="load({
                password: { msg:'由6-14位数字或字母或特殊字符组成！',required:'请填写密码(6~14位字母,数字或下划线组成，不区分大小写)',minlength: '密码长度为6-14个字符', maxlength: '密码为超长，目前仅支持6-14位密码', pattern: '格式错误！！只能由数字,字母或下划线构成',success:true}
                ,confirm: { required:'请填写确认密码',error: '与输入密码不一致',success:true}
                ,verifyvalue: { msg:'请输入图片显示的数字或字母',error: '请正确填写验证码',success:true}
                ,submit:{verifycode:'验证码错误',user:'防沉迷信息错误',email:'安全邮箱错误',identity:'系统繁忙，请稍候再试',account:'账号信息错误',error:'系统异常，请联系我们'}
            });
            submit.url='/account/NewModifyPassword/r/Default/@ViewData["code"]';
            redirect.url='/usercenter/step5/r/Default/';
	        password.words=['[0-9]+','[a-zA-Z]+','[@Html.Raw('@')_!#$%^&*]+'];
	        passwrod.levels =['level1','level2','level3','level4'];
            ">           
    <table class="tab1" width="720">
        <tr>
            <td width="115"><span class="txtr">输入新密码：</span> </td>
            <td width="270">
                 <input type="password" class="text270" name="password" ng-init="password.input()" on-focus="password.input()" ng-model="password.value" on-blur="password.validate();" ng-change="password.validate();password.change();" ng-pattern="password.pattern" ng-minlength="6" ng-maxlength="14" required/>
                
            </td>
            <td>
                <span class="error" ng-show="password.error" style="display:none;">{{password.error}}</span>
	            <span ng-show="!password.error&&!password.success&&password.msg" ng-bind-template="{{password.msg}}"></span>
                <span class="green" ng-show="password.success" style="display:none;">&nbsp;</span>
            </td>
        </tr>
        <tr>
            <td width="115"><span class="txtr">密码强度：</span> </td>
           
            <td colspan="2">
               <span ng-class="['level',passwrod.levels[password.level||0]]">&nbsp;&nbsp;</span>
            </td>
        </tr>
        <tr>
            <td width="115"><span class="txtr">确认新密码：</span> </td>
           
            <td width="270">
                <input name="confirm" type="password" class="text270" ng-init="confirm.input()" on-focus="confirm.input()" on-blur="confirm.validate();" ng-model="confirm.value" required/>   
            </td>
            <td>
               <span class="error" ng-show="confirm.error" style="display:none;">{{confirm.error}}</span>
	            <span ng-show="!confirm.error&&!confirm.success&&confirm.msg" ng-bind-template="{{confirm.msg}}"></span>
                <span class="green" ng-show="confirm.success" style="display:none;">&nbsp;</span>
            </td>
        </tr>
        <tr>
            <td width="115"><span class="txtr">验证码输入：</span> </td>
            <td width="270">
               <input type="text" class="text270" name="verifyvalue" ng-init="verifyvalue.input()" on-focus="verifyvalue.input()" on-blur="verifyvalue.validate();" ng-model="verifyvalue.value" ng-pattern="verifyvalue.pattern" required/>
                 
            </td>
            <td>
                <span class="red" ng-show="verifyvalue.error" style="display:none;">{{verifyvalue.error}}</span>
                <span ng-show="!verifyvalue.error&&!verifyvalue.success&&verifyvalue.msg" ng-bind-template="{{verifyvalue.msg}}"></span>
                <span class="green" ng-show="verifyvalue.success" style="display:none;">&nbsp;</span>  
            </td>
        </tr>
        <tr>
            <td><span class="txtr">验证码图片：</span> </td>
            <td>
                <img ng-src="{{verifycode.value}}" ng-click="verifycode.newdefault()" style="border:1px solid #000;"/>
                <a ng-click="verifycode.newdefault()" class="fresh">点击图片刷新验证码</a>
            </td>
            <td>
                        	
            </td>
        </tr>
        <tr style="display:none" ng-show="submit.error">
            <td></td>
            <td colspan="2">
                <span class="error" >{{submit.error}}</span>
            </td>
        </tr>           
        <tr>
            <td></td>
            <td align="center">
                <div style="height:50px; margin-top:15px;"><input type="submit" value="" class="find_qrxg" /></div>
            </td>
            <td></td>
        </tr>
    </table>
   </form>             
</div>
